package cn.hd.dao;

import cn.hd.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserDao {
    public int addUser(User user);
    public int delUser(long id);
    public int updateUser(User user);
    public List<User> selectUsers(Map map);
    public User selectUserByName(String name);
    public User selectUserById(long id);
    public User selectByeRid(long rid);
    public List<User> selectByRid(long rid);
    public int updateUserRole(@Param("id") long id,@Param("rid") long rid);

    //zjc--开始
    public int updateUser2(User user);
    public int updateUserPassword(@Param("password") String password,@Param("uid") long uid);
    //根据id查询角色
    public String selectRoleById(long id);



}
